var frisby = require('frisby');

frisby.create('获取航行通告接口')
  .post('http://192.168.247.88:9090/hub/notam/getNotam_xml', {
      'device-udid':'092700B6-2E6F-45D7-B55D-AEFACED48DDC',
      'TGDD':'北京',//通告地点   不能为空
      'BWZL':'TGDD',//报文种类，国际或者国内   不能为空
      'STime':'2013-10-30T14:33:36+08:00',//B项起始时间   不能为空
      'ETime':'2013-10-31T14:33:36+08:00'//B项截止时间   不能为空
    })


    // .inspectJSON()
  .expectJSONTypes({
      'ResponseInfo': {
        "Result": String,
        "ErrorInfo": String
      }})
  .expectJSONTypes({
      'Data': {
        "HXTG": Array
      }})

  .expectJSONTypes('Data.HXTG.?', {
      "id":String,
      "FBDW":String,
      "TGSB_DATE":String,
      "TGSB_DT":String,
      "TGXLH":String,
      "TGXLH_OLD":Array,
      "TGSM":String,
      "TGQY":String,
      "TGDD":String,
      "TG_QXNR":String,
      "TG_QSSJ":String,
      "TG_JZSJ":String,
      "TG_DXNR":Array,
      "TG_YX":String,
      "TG_PART":String,
      "TG_BWZL":String,
      "TG_NRJY":String,
      "TG_NR":String,
      "TG_NRFY":String,
      "TG_XDR":String,
      "TG_NF":String,
      "TG_SPEC":String,
      "TG_ST":String,
      "TG_BZ":Array,
      "TG_REMARK":String
    })
     .expectStatus(200)
.toss();
